<%@page import="com.lynn.salary.util.ToolMethod"%>
<%@page import="com.lynn.salary.entity.User_"%>
<%@page import="com.opensymphony.xwork2.util.ValueStack"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
	String ai = "ai_"+ToolMethod.getCharAndNumr(8);
%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<div class="pageContent">
	<form method="post" action="<%=basePath %>search!forSubject.do" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone);">
		<input id="<%=ai %>" name="searchTag" type="hidden" value=""/>
	<div class="pageFormContent" layoutH="56">
			<p>
				<label>标题中包含：</label> <input maxlength="30" name="subjectSearchDTO.title" type="text" size="30" />
			</p>
			<p>
				<label>作者名字：</label> <input maxlength="30" name="subjectSearchDTO.author" type="text" size="30" />
			</p>
			<p>
				<label>访问次数大于：</label>
				<input name="subjectSearchDTO.visitCount" type="text" size="30" maxlength="10" onKeyUp="this.value=this.value.replace(/[^0-9]/ig,'')"/>
			</p>
			<p>
				<label>评论次数大于：</label>
				<input name="subjectSearchDTO.commentCount" type="text" size="30" maxlength="10" onKeyUp="this.value=this.value.replace(/[^0-9]/ig,'')"/>
			</p>
			<p>
				<label>创建日期在此之前：</label> <input type="text" name="subjectSearchDTO.ctTimeBefore" class="date" size="30" readonly="readonly"/><a class="inputDateButton" href="javascript:;">选择</a>
			</p>
			<p>
				<label>创建日期在此之后：</label> <input type="text" name="subjectSearchDTO.ctTimeAfter" class="date" size="30" readonly="readonly"/><a class="inputDateButton" href="javascript:;">选择</a>
			</p>
		</div>
	
	
	<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
				<li>
					<div class="button"><div class="buttonContent"><button id="c_<%=ai %>" type="button" class="close">取消</button></div></div>
				</li>
			</ul>
		</div>	
	</form>
</div>
<script>
	$("#<%=ai %>").attr("value",searchTag['subject']);
</script>
